<head>
<link rel="stylesheet" type="text/css" href="panel.css">
</head>

<body>
<?php
$width=$_POST['width'];
$height=$_POST['height'];
$padding=$_POST['padding'];
$FontSize=$_POST['FontSize'];
$FontStyle=$_POST['FontStyle'];
$FontColor=$_POST['FontColor'];
$BGcolor=$_POST['BGcolor'];
$BGcolorHover=$_POST['BGcolorHover'];
$FontColorHover=$_POST['FontColorHover'];

$PoleHorizontal1=$_POST['name_file1'];
$PoleHorizontal2=$_POST['name_file2'];
$PoleHorizontal3=$_POST['name_file3'];
$PoleHorizontal4=$_POST['name_file4'];
$PoleHorizontal5=$_POST['name_file5'];
$PoleHorizontal6=$_POST['name_file6'];
$PoleHorizontal7=$_POST['name_file7'];
$PoleHorizontal8=$_POST['name_file8'];
$Page=$_POST['Page'];

$text .="<style>"."\n ".".MenuHorizontal li{width: $width;"; 
$text .="height: $height; float: left; list-style: none;"; 
$text .="text-align: center; padding: $padding; margin: 0px;}"."\n";
$text .=".MenuHorizontal li a {display: block; font-size: $FontSize;"; 
$text .="font-family:'Times New Roman',Times,serif;font-style: $FontStyle;"; 
$text .="color: $FontColor; text-decoration: none; margin: 0;"; 
$text .="background-color: $BGcolor;}"."\n";
$text .=".MenuHorizontal li a:hover {background-color: $BGcolorHover;"; 
$text .="color: $FontColorHover; text-shadow: 1px 1px 1px black, 0 0 1em #00F6FF;}"."\n"."</style>";


$i=0;
$i<10;
if (!empty($PoleHorizontal1))
{$text .="\n "."<li><a href='$PoleHorizontal1.php'>"; $text .="$PoleHorizontal1</a></li>"."\n ";}
if (!empty($PoleHorizontal2))
{$text .="<li><a href='$PoleHorizontal2.php'>";$text .="$PoleHorizontal2</a></li>"."\n ";}
if (!empty($PoleHorizontal3))
{$text .="<li><a href='$PoleHorizontal3.php'>"; $text .="$PoleHorizontal3</a></li>"."\n ";}
if (!empty($PoleHorizontal4))
{$text .="<li><a href='$PoleHorizontal4.php'>"; $text .="$PoleHorizontal4</a></li>"."\n ";}
if (!empty($PoleHorizontal5))
{$text .="<li><a href='$PoleHorizontal5.php'>"; $text .="$PoleHorizontal5</a></li>"."\n ";}
if (!empty($PoleHorizontal6))
{$text .="<li><a href='$PoleHorizontal6.php'>"; $text .="$PoleHorizontal6</a></li>"."\n ";}
if (!empty($PoleHorizontal7))
{$text .="<li><a href='$PoleHorizontal7.php'>"; $text .="$PoleHorizontal7</a></li>"."\n ";}
if (!empty($PoleHorizontal8))
{$text .="<li><a href='$PoleHorizontal8.php'>"; $text .="$PoleHorizontal8</a></li>"."\n ";}




if (!empty($Page))
{
$file = fopen ("WWW/$Page.php", "a+");
fwrite ($file,$text);
fclose ($file);
}
?>

